﻿using Abp.AutoMapper;
using System;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Orders.Dto
{
    /// <summary>
    /// 创建输入参数DTO
    /// </summary>
    [AutoMapTo(typeof(OrderMain))]
    public class CreateOrderMainInput
    {
        /// <summary>
        /// 期数
        /// </summary>
        [StringLength(OrderMain.MaxNameLength)]
        public virtual string Num { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Required]
        public virtual double MainPrice { get; set; }
        /// <summary>
        /// 还款日
        /// </summary>
        [Required]
        public virtual DateTime MainDate { get; set; }
        /// <summary>
        /// 状态：1未还清，2已还清，3逾期
        /// </summary>
        [Required]
        public const int MainType = 1;
      
        /// <summary>
        ///外键
        /// </summary>
        public virtual Guid HeadId { get; set; }
    }
}